import request from "@/utils/axios";

export const getArticleList = (data) => {
  return request.get("/admin/interview/query", {
    params: data,
  });
};

// 增
export const createArticle = (data) => {
  return request.post("/admin/interview/create", data);
};

// 查
export const getArticleDetail = (id) => {
  return request.get("/admin/interview/show", {
    params: { id },
  });
};

// 改
export const updateArticle = (data) => {
  return request.put("/admin/interview/update", data);
};

// 删
export const deleteArticle = (data) => {
  console.log(data);
  return request({
    method: "delete",
    url: "/admin/interview/remove",
    data,
  });
};
